package chapter008.point2;

import chapter008.point01.Package1;

/**
 * 修饰符测试类
 *
 * @author Jack魏
 */
public class Point02 {
    public static void main(String[] args) {
        Package1 package1 = new Package1();
        package1.name = "package1";
        System.out.println("package1 name is " + package1.name);
        /*package1.address = "地址";
        package1.sex = "性別";
        package1.age = 18;*/

        package1.publicFunction();
//        package1.protectedFunction();
//        package1.function();
//        package1.privateFunction();

        Package2 package2 = new Package2();
        package2.address = "地址";
        package2.name = "package2";
        package2.sex = "性別";
//        package2.age = 18;

        package2.publicFunction();
        package2.protectedFunction();
        package2.function();
//        package2.privateFunction();
    }
}
